package cn.net.msg.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.springframework.stereotype.Component;

@Component("announce")
@Entity @Table(name = "tb_announce")
public class TbAnnounce {
    
    @Id @Column(name = "Announce_id",length=11)
    private int announceId;
    
    @Column(name= "Announce_icon",length=100)
    private String announceIcon;
    
    @Column(name= "Announce_title",length=100)
    private String announceTitle;
    
    @Column(name= "Announce_description",length=100)
    private String announceDescription;
    
    @Column(name="Announce_creattime")
    @Temporal(TemporalType.TIMESTAMP)
    private Date announceCreattime;
    
    @Column(name= "Announce_link",length=100)
    private String announceLink;
    
   
    public int getAnnounceId() {
        return announceId;
    }
    public void setAnnounceId(int announceId) {
        this.announceId = announceId;
    }
    
    
    public String getAnnounceIcon() {
        return announceIcon;
    }
    public void setAnnounceIcon(String announceIcon) {
        this.announceIcon = announceIcon;
    }
    
   
    public String getAnnounceTitle() {
        return announceTitle;
    }
    public void setAnnounceTitle(String announceTitle) {
        this.announceTitle = announceTitle;
    }
    
    
    public String getAnnounceDescription() {
        return announceDescription;
    }
    public void setAnnounceDescription(String announceDescription) {
        this.announceDescription = announceDescription;
    }
    
    
    public Date getAnnounceCreattime() {
        return announceCreattime;
    }
    public void setAnnounceCreattime(Date announceCreattime) {
        this.announceCreattime = announceCreattime;
    }
    
    
    public String getAnnounceLink() {
        return announceLink;
    }
    public void setAnnounceLink(String announceLink) {
        this.announceLink = announceLink;
    }
}
